<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS背景图片平铺</title>
    <!-- background-repeat用于定义背景图片是否平铺，默认平铺 -->
    <style>
        div{
            width: 1400px;
            height: 800px;
            background-image: url(1.jfif);
            /* background-repeat: no-repeat; */
            /*向横轴平铺 background-repeat: repeat-x; */
            /*向纵轴平铺 background-repeat: repeat-y; */
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>